package com.jia.coupons.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * (Voucher)实体类
 *
 * @author makejava
 * @since 2024-10-05 21:18:11
 */
@Getter
@Setter
public class Voucher implements Serializable {

    private static final long serialVersionUID = -37868414814745679L;

    /**
     * 主键
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 商铺id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long shopId;
    /**
     * 代金券标题
     */
    private String title;
    /**
     * 副标题
     */
    private String subTitle;
    /**
     * 使用规则
     */
    private String rules;
    /**
     * 支付金额，单位是分。例如200代表2元
     */
    private Long payValue;
    /**
     * 抵扣金额，单位是分。例如200代表2元
     */
    private Long actualValue;
    /**
     * 0,普通券；1,秒杀券
     */
    private Integer type;
    /**
     * 1,上架; 2,下架; 3,过期
     */
    private Integer status;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 更新时间
     */
    private Date updateTime;

}

